﻿@model FPP.Models.FamousPerson
@{
    ViewBag.Title = "Famous People Pool - Details - " + Model.DisplayName;
}
<fieldset>
    <legend>Details for @Model.DisplayName</legend>
    <div id="leftCol" class="column span-6">
        <div class="display-field">
            <img alt="@Model.DisplayName" src="@Model.WikiData().ImageUrl" style="max-width: 230px" />
        </div>
        @Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |
        @Html.ActionLink("Back to List", "Index")
    </div>
    <div id="rightCol" class="column clearfix">
        <h1>@Model.DisplayName</h1>
        <div class="display-label">@Html.LabelFor(model => model.DateOfBirth)</div>
        <div class="display-field prepend-10px">@String.Format("{0:d}", Model.DateOfBirth)</div>
        <div class="display-label">@Html.LabelFor(model => model.DateOfDeath)</div>
        <div class="display-field prepend-10px">@String.Format("{0:d}", Model.DateOfDeath)</div>
        <div class="display-label">@Html.LabelFor(model => model.WikiLink)</div>
        <div class="display-field prepend-10px">
            <a href="@Model.WikiLink" target="_blank">@Model.WikiLink</a></div>
    </div>
</fieldset>
